package com.deram.ctin.serv.search.solr.service;

import com.deram.ctin.common.bean.PageResult;
import com.deram.ctin.serv.customs.entity.CustomsInfo;
import com.deram.ctin.serv.search.entity.solr.bean.SolrCustomsInfo;
import com.deram.ctin.serv.search.entity.solr.search.WebCustomsSearchParam;
import org.springframework.data.domain.Page;

import java.util.List;

public interface SolrCustomsInfoService {

    SolrCustomsInfo save(SolrCustomsInfo solrCustomsInfo);


    SolrCustomsInfo findById(Long id);

    void delete(Long id);

    PageResult<SolrCustomsInfo> findByKeyWords(WebCustomsSearchParam keywords, Integer pageNo, Integer pageSize);

    List<SolrCustomsInfo> findAll();

    List<SolrCustomsInfo> findByOne(CustomsInfo customsInfo);


    List<SolrCustomsInfo> findByEnter(Long enterId);

//    List<SolrCustomsInfo> searchByKeyWords(String  keywords);
}